package day4;

import java.util.Scanner;

/**
 * 求A,B,C
 */

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int num3 = in.nextInt();
        int num4 = in.nextInt();
        int A = 0;
        int B = 0;
        int C = 0;
        A = (num1 + num3)/2;
        B = A - num1;
        C = B - num2;
        if ((num1 == A - B) && (num2 == B - C) && (num3 == A + B) && (num4 == B + C)){
            System.out.println(A +" "+ B +""+ C +"");
        }else {
            System.out.println("No");
        }
    }
}